package the.guanzhong.express.infrastructure.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("express_refund")
public class RefundDO extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1266815917386984783L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 退款原因
     */
    private String reason;

    /**
     * 退款金额
     */
    private BigDecimal refundFee;
    /**
     * 实际退款金额
     */
    private BigDecimal actualRefundFee;

    private String outRefundId;
    private String outTransactionId;
    private String channel;
    private String userReceivedAccount;
    private Date successTime;
    private Date acceptTime;
    private Integer refundStatus;
    private Integer tenantId;
    private String userId;
    private String rejectReason;
    private Date applyTime;

    /**
     * 退款结果
     */
    private Integer refundResult;

    /**
     * 退款结果说明
     */
    private String resultDescr;
}
